package com.kele.api.goods;

import com.kele.common.model.response.Result;
import com.kele.model.goods.Category;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value="分类管理接口",description = "提供分类的增、删、改、查")
public interface CategoryControllerApi {

    @ApiOperation("findAll")
    public List<Category> findAll();

    @ApiOperation("findById")
    public Category findById(Long id);

    @ApiOperation("Save")
    public Result save(Category category);

    @ApiOperation("deleteById")
    public Result deleteById(Long id);
}
